# include <stdio.h>
# include <stdlib.h>
# include <string.h>
int main ()
{
   FILE *fp;
   char x[100];
   printf("请输入文本文件的名称：\n");
   scanf("%s",&x);
   if((fp=fopen(x,"r"))==NULL)
   {
   	printf("File open falied!\n");
   	exit(0);
   }
	puts(fgets(x,sizeof(x),fp));
    fclose(fp);  
    return 0;  
	
 } 